package cn.wangyu.mo.admin.service;

import cn.wangyu.mo.admin.entity.Admin;
import cn.wangyu.mo.base.BaseService;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

/**
 * <p>
 * 管理员表 服务类
 * </p>
 *
 * @author wangyu
 * @since 2021-04-05
 */
public interface IAdminService extends BaseService<Admin> {

    /**
     * 分页查询
     *
     * @param page
     * @return
     */
    IPage<Admin> findByPages(Page<Admin> page);

    /**
     * 条件分页查询
     *
     * @param page
     * @param params
     * @return
     */
    IPage<Admin> findPages(Page<Admin> page, Map<String, Object> params);
}
